package com.design.decorator.shape;

// 填充颜色装饰者类，实现了装饰者接口
class FillColorDecorator implements ShapeDecorator {
    private Shape shape;
    private String color;

    public FillColorDecorator(Shape shape, String color) {
        this.shape = shape;
        this.color = color;
    }

    @Override
    public void draw() {
        shape.draw();
        System.out.println("Fill Color: " + color);
    }

    @Override
    public String getDescription() {
        return shape.getDescription() + " with Fill Color: " + color;
    }
}
